package boot.controller;

import boot.entity.User;
import boot.entity.UserTest;
import boot.mapper.CityMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Author: zhiyu
 * @Date:20:02
 * @DESC:
 */
@Controller
public class UserController {
    @Autowired
    private CityMapper cityMapper;
    @RequestMapping("/user")
    @ResponseBody
    public UserTest selectUser(){
        System.out.println(1111111);
        UserTest test = cityMapper.test();
        return test;
    }
}
